#include <stdio.h>
int main(void)
{
	int i, j;
	printf("Enter lower and upper integer limits:");
	scanf_s("%d", &i);
	scanf_s("%d\n", &j);
	do
	{
		while (i < j)
		{
			int sum = 0;
			printf("The sum of the square form %d to %d is", i * i, j * j);
			for (i; i <= j; i++)
			{
				sum = sum + i * i;
			}
			printf(" %d\n", sum);
			break;
		}
		printf("Enter lower and upper integer limits:");
		scanf_s("%d", &i);
		scanf_s("%d\n", &j);
	} while (i < j);
	printf("Done\n");
	return 0;
}